package routers

import (
	"git.oschina.net/zzx2010/go/mybee/controllers"
	"github.com/astaxie/beego"
)

func init() {
	beego.Router("/", &controllers.AddController{})
	beego.Router("/form", &controllers.FormController{})
	beego.Router("/item", &controllers.ItemsController{})
	beego.Router("/add", &controllers.AddController{})
	ns := beego.NewNamespace("/v1",
		// beego.NSNamespace("/object",
		// 	beego.NSInclude(
		// 		&controllers.ObjectController{},
		// 	),
		// ),
		// beego.NSNamespace("/user",
		// 	beego.NSInclude(
		// 		&controllers.UserController{},
		// 	),
		// ),
		// beego.NSNamespace("/cms",
		// 	beego.NSInclude(
		// 		&controllers.CMSController{},
		// 	),
		// ),
		beego.NSNamespace("/",
			beego.NSInclude(
				&controllers.AddController{},
			),
		),
	)
	beego.AddNamespace(ns)
}
